﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CIRDiagnoseDevice
{
    public partial class TaxDataTrainNumAndCabNo : Form
    {

        public static string CabNo; // 机车号
        public static string TrainNum;//车次号
        public static string TrainType;//车次种类
        public static string CabType;// 机车类型
        public TaxDataTrainNumAndCabNo()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text != "")
                CabType = textBox1.Text;
            if (textBox2.Text != "")
                TrainType = textBox2.Text;
            if (textBox3.Text != "")
                TrainNum = textBox3.Text;
            if (textBox4.Text != "")
                CabNo = textBox4.Text;
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
